home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Alpha ƒ / Help / Alpha Commands next >
Text File  |  1996-01-21  |  35KB  |  672 lines

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. Ñ abortEm - aborts whatever is currently happening
  17. Ñ addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. Ñ addDef <var> <val> - Permanently save an association between the var 
  28.   'var' and 'val'. 'addDef' and 'addArrDef' are now the sanctioned way to 
  29.   save values between sessions. Also see 'removeDef' and 'removeArrDef'.
  30. Ñ addArrDef <var> <field> <val> - Permanently save an association between 
  31.   the var var(field) and 'val'.
  32. Ñ AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  33.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  34.   name. Each "event parameter" is two parameters, a parameter type and 
  35.   the data for the parameter. See the AEBuild doc for more details, 
  36.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (wait for reply), 
  37.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  38.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  39.   timeout in ticks.
  40. Ñ alertnote message_string
  41.   This command will display message_string in a standard Macintosh alert box.
  42. Ñ alphaHelp - display Alpha help.
  43. Ñ ascii (see bindings).
  44. Ñ askyesno [-c] prompt
  45.   This command will display a Macintosh alert box with 'prompt' displayed
  46.   with the push buttons Yes and No. The command will return the 
  47.   string "yes" or "no". The '-c' flag specifies that a cancel button be 
  48.   used as well.
  49. Ñ backColor - set background color
  50. Ñ backSpace - delete selection, or a single char if no selection.
  51. Ñ backwardChar - moves insertion one char back
  52. Ñ backwardCharSelect - extends selection one char back
  53. Ñ backwardDeleteWord - deletes previous word
  54. Ñ backwardWord - moves insertion one word back
  55. Ñ balance - selects smallest set of parens, braces, or 
  56.   brackets that encloses the current selection
  57. Ñ beep
  58. Ñ beginningBufferSelect - extend selection to the 
  59.   beginning of the buffer
  60. Ñ beginningLineSelect - extend selection to the 
  61.   beginning of the line
  62. Ñ beginningOfBuffer - move insertion to the beginning 
  63.   of the buffer
  64. Ñ beginningOfLine - move insertion to the beginning of 
  65.   the line
  66. Ñ bind  (see bindings)
  67. Ñ blink <pos> - blink cursor at 'pos'
  68. Ñ breakIntoLines <string> - return 'string' with 
  69.   carriage returns and spaces inserted to satisfy 
  70.   'leftFillColumn' and 'fillColumn' variables.
  71. Ñ bringToFront <winName> - Bring named window to front.
  72. Ñ buttonAlert <prompt> [<button>╔] - Create a dialog w/ the specified 
  73.   buttons, returning the one selected.
  74. Ñ capitalizeRegion - capitalize all words in selected 
  75.   region 
  76. Ñ capitalizeWord - capitalize word
  77. Ñ cd [directory]
  78.   This command will set the current working directory to "directory". The directory 
  79.   argument may or may not end with a colon. The working directory is the directory 
  80.   in which file names that contain no colons (folders) will be located with file related 
  81.   commands. No argument means Alpha's home directory.
  82. Ñ centerRedraw - redraw window with current line in 
  83.   the middle.
  84. Ñ clear - clear selected text
  85. Ñ closeAll - close all windows
  86. Ñ colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  87. Ñ colorTriple [<prompt>] [<red> <green> <blue>] - Prompts user to choose 
  88.   color. If specified, the input RGB value is used as the initial color on 
  89.   the colorpicker.
  90. Ñ copy - copy region
  91. Ñ cp <fromName>+ <toName>
  92.   This command will copy the file fromName and name the new file toName, 
  93.   overwriting any existing file. This command copies both data forks, and 
  94.   the Finder information. 
  95. Ñ createTagFile - searches all files in current file set 
  96.   and saves the locations of any function declarations
  97.   in a file called 'cTAGS'.
  98. Ñ createTMark <name> <pos> - create a temporary 'mark' 
  99.   at location 'pos'. 
  100. Ñ currentPosition - displays current and total bytes.
  101. Ñ cut - deletes and saves region
  102. Ñ deleteChar - delete char AFTER cursor
  103. Ñ deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  104.   and delete from specified menu. If '-m' specified, menu form conversion 
  105.   not done. 
  106. Ñ deleteModeBindings <mode> - Delete all bindings for specified mode.
  107. Ñ deleteSelection - delete current position, don't save
  108. Ñ deleteWord - delete word after cursor
  109. Ñ describeBinding - display the binding of the next typed key sequence. 
  110. Ñ deleteText <pos1> <pos2> - remove text between 'pos1' 
  111.   and 'pos2'
  112. Ñ dialog [<-w width>|<-h height>|<-b title l t r b>|<-c title val l t r b>|
  113.             <-t text l t r b>|<-e text l t r b>|<-r text val l t r b>|
  114.             <-p l t r b>]+ 
  115.   Create and display a dialog.  '-w' and '-h' allow width and height of 
  116.   dialog window to be set.  '-b', '-c', '-r', '-t', '-e' and '-p' allow 
  117.   buttons, checkboxes, radio buttons, static text, editable text and gray 
  118.   outlines to be created, respectively.  All control types (except gray 
  119.   outlines) require specification of a title or text, together with left, 
  120.   top, right, and bottom coordinates.  Checkboxes and radioboxes have an 
  121.   additional parameter, the default value.  At least one button must be 
  122.   specified.  The return value is a list containing resulting values for 
  123.   all buttons, radioboxes, checkboxes, and editable textboxes (static text 
  124.   is ignored).  Buttons have value '1' if chosen, '0' otherwise.  The 
  125.   dialog box exits at the first button press.
  126.  
  127. Ñ display [-w <win>] <pos> - move pos's line to top of screen.
  128. Ñ displayMode <mode> - Up to four characters of the 'mode' string are 
  129.   displayed in the status line at the bottom of a window.
  130. Ñ dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  131.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  132.    -c 'sign' 
  133.            "sign" is a four-letter creator signature of a running application.
  134.    -n appName
  135.            "appName" is the name of a running application.
  136.    -k 'clas'
  137.            "clas" is a four-letter event class.
  138.    -e 'evnt'
  139.            "evnt" is a four-letter event class.
  140.    -s string
  141.            "string" is the text of a script to send to the other app.
  142.    -f fileName
  143.            "fileName" is the complete or relative pathname of a file the other 
  144.            application should execute.
  145.    -t timeout
  146.            "timeout" is the number of ticks Alpha should wait for a response. A 
  147.            timeout of "0" means wait forever.
  148.    -r
  149.            Do not wait for reply.
  150.    -q
  151.            Queue reply.
  152.            
  153.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  154.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  155.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  156.    can send events to a remote server such as Apple's ToolServer. 
  157.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  158.    controlling Stuffit Deluxe via this command.
  159. Ñ downcaseRegion - changes all uppercase letters to 
  160.   lowercase in current region
  161. Ñ downcaseWord - changes all uppercase letters to 
  162.   lowercase in current word
  163. Ñ dumpColors - dump current foreground and background
  164.   colors into the current buffer in Alpha-readable
  165.   format.
  166. Ñ dumpMacro - prompts for a name and then dumps a tcl proc representation 
  167.   of the current keyboard macro into the current window.
  168. Ñ echo <string>* - echo the strings (used 
  169.   in shells).
  170. Ñ edit [-r] [-m] [-w] [-g <t> <t> <w> <h>] <name> - Open a file in a new window. 
  171.   '-r' means open the file read-only. '-m' means omit the function titlebar 
  172.   menu and present only the marks titlebar menu, which is labeled with the 
  173.   contents of 'markLabel'. The '-g' option allows left and top coords to 
  174.   be specified, plus width, and height. All or none. '-w' allows you to
  175.   bypass the "Wrap" dialog for files with long rows.
  176. Ñ enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  177.   disable the menu item of user menu 'menuName' that has text '<item 
  178.   text>'. Note that unless the menu is not only created, but also already
  179.   inserted, this command has no effect. 
  180. Ñ endBufferSelect - extend selection to the end of the 
  181.   buffer
  182. Ñ endKeyboardMacro - stop recording keyboard macro
  183. Ñ endLineSelect - extend selection to the end of line
  184. Ñ endOfBuffer - move insertion to the end of the buffer
  185. Ñ endOfLine - move insertion to the end of the line
  186. Ñ enterSelection - use current selection for future searches.
  187. Ñ eventHandler [class] [event] [proc] - Register 'proc' to handle the class 
  188.   and event specified. Class and event are each 4 char args. 'proc' takes 
  189.   a single argument that specifies the incoming event according to the 
  190.   syntax here. There is currently no provision for a reply.
  191. Ñ exchangePointAndMark - exchange the current 'mark' 
  192.   w/ the current insertion point
  193. Ñ execute - prompt user for a function or macro. The 
  194.   tab key acts as a "completion" command.
  195. Ñ executeKeyboardMacro - execute the current keyboard 
  196.   macro
  197. Ñ fileInfo - prompts for a file, and displays type, 
  198.   creator, sizes of both data and resource forks, last
  199.   modification time, and creation time
  200. Ñ fileRemove - prompts for a file, and removes it
  201. Ñ find - bring up the find dialog
  202. Ñ findAgain - repeat search forward
  203. Ñ findAgainBackward - repeat search backward
  204. Ñ findFile - open a file in a new window
  205. Ñ findInNextFile - search next file.
  206. Ñ findTag - prompt user for a function name and attempt 
  207.   to use the file 'cTAGS' to locate the function's 
  208.   definition
  209. Ñ forwardChar - move insertion one character forward
  210. Ñ forwardCharSelect - extend selection one character 
  211.   forward
  212. Ñ forwardWord - move insertion one word forward
  213. Ñ freeMem - give a rough approximation of the current 
  214.   memory reserves of ALPHA
  215. Ñ get_directory [-p <prompt>]
  216.   This command will display a standard Macintosh file dialog and request the user 
  217.   select a folder. The command will return the selected folder's full path name, or an 
  218.   empty string if the Cancel button was selected.
  219. Ñ getAscii - displays the ASCII code for character at 
  220.   current insertion point
  221. Ñ getChar - waits for a keystroke, returns ascii.
  222. Ñ getColors - returns list of colors/hypertext for current document. 
  223.   Format is list of lists, each sublist consisting of file offset, color 
  224.   index, and possibly a hypertext command.
  225. Ñ getfile <prompt>
  226.   This command will display an SFGetFile() and return the full path name of the 
  227.   selected file, or an empty string if CANCEL button was selected.
  228. Ñ getFileInfo <file> <arr> - Given a file name, creates an array called 
  229.   'arr' in the current context, containing fields 'created', 'creator', 
  230.   'modified', 'type', 'datalen', and 'resourcelen'. 'created' and 
  231.   'modified' are in a form suitable for the command 'mtime'.
  232. Ñ getGeometry [win] - return a TCL list containing the left 
  233.   edge of the current window, the top, the width, and height.
  234. Ñ getline <prompt> <default>
  235.   This command will display a Macintosh alert box with prompt displayed, a 
  236.   text edit field with default initially in the field, and with the push 
  237.   buttons OK, Cancel.. The command will return the text entered into the 
  238.   text edit field by the user, or an empty string if the user selected the 
  239.   Cancel button. 
  240. Ñ getMainDevice - return a list containing the left, top, right, and 
  241.   bottom of the rectangle defining the main device.
  242. Ñ getMark - return the current mark.
  243. Ñ getNamedMarks [-w <win>] [-n] - 
  244.   return list of all permanent marks in open files. Each
  245.   element of a list describes one mark as a sublist of the mark's name, 
  246.   the complete pathname of the mark's file, the position of the first 
  247.   character in the first line displayed, the current position, and the 
  248.   end of the selection if text is hilited, or the current position again 
  249.   if there is no hilited section. '-w' allows window name to be applied 
  250.   as filter, '-n' means only names will be returned.
  251. Ñ getPathName - prompt the user with an SFGetFile dialog and return 
  252.   complete pathname.
  253. Ñ getPos [-w <win>] - return the current insertion point
  254. Ñ getScrap - returns system TEXT scrap.
  255. Ñ getSelect - return the currently selected text, if 
  256.   any.
  257. Ñ getText [-w <win>] <pos1> <pos2> - return the text between 'pos1' 
  258.   and 'pos2'. '-w' can be used to specify a window.
  259. Ñ getTMarks - Return a list of temporary marks. Each item of the returned 
  260.   list is a sublist containing the mark name, the complete pathname of the 
  261.   mark, and the start and finish of the selection named by the mark. The 
  262.   following is an example of the result: 
  263.  
  264.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  265.  
  266. Ñ getWinInfo [-w <win>] <arr> - Creates an array in current context 
  267.   containing info about either the current or a specified window. Array 
  268.   has fields 'state', 'platform', 'read-only', 'tabsize', 'split', 
  269.   'linesdisp' (num lines that can be seen in the window) and 'dirty'.
  270. Ñ glob [-i] [-t <TYPE>] [-c <CRTR>]
  271.   The original glob provided by the UNIX version of tcl was not quite 
  272.   adequate for the more complex Macintosh file system. Issues such as 
  273.   invisible file handling, Finder type and creator filtering, and space 
  274.   handling in file names. Release 6 of tcl has dealt with the original 
  275.   problem with spaces in filenames, but the following options are provided 
  276.   to deal with additional Macintosh issues. 
  277.  
  278. Anyway, the new glob now takes several options. They are:
  279.     -i    This option causes glob to list invisible files also.
  280.     -t TYPE    This option causes glob to only list file with the 
  281.         indicated Finder file typeTYPE. This option may be 
  282.         used with the -c option.
  283.     -c CRTR    This option causes glob to only list file with the 
  284.         indicated Finder file creatorCRTR. This option may 
  285.         be used with the -t option.
  286.         Also note that the original glob would skip dot files
  287.         (i.e., file names the begin with a period) 
  288.         in the listing, unless the pattern began with a period.
  289.         Tickle extends this concept one step further on the
  290.         Macintosh, and skips spot files (i.e., file names that 
  291.         begin with 'Ñ'), unless the pattern starts with a spot.
  292. Ñ goto <pos> - goto the position 'pos'.
  293. Ñ gotoMark - goto named mark, use 'mark' in macros.
  294. Ñ gotoTMark <name> - goto the temporary mark 'name'.
  295. Ñ icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  296.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  297.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  298.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  299.   position <h> and vertical position 'v'. Options are executed as they 
  300.   are parsed, so the '-f' option, if present, should always be first. 
  301. Ñ icURL <URL> - passes arg to Internet Config, if present. Error if not 
  302.   present. 
  303. Ñ icGetPref [<-t <type>] <pref name> - Gets preference from 
  304.   Internet Config. '-t' allows type to be set, '0' returns a string 
  305.   (default), '1' returns a path name, commonly used for helper apps. A 
  306.   <pref name> of 'all' returns all valid preferences.
  307. Ñ icOpen - Opens Internet Config
  308. Ñ insertAscii - prompts for an ASCII code and inserts
  309.   into text.
  310. Ñ insertColorEscape <pos> <color ind> [hypertext func] - Create a color 
  311.   or style "point" for documentation purposes. Look at the file 
  312.   "docColors.tcl" for examples. The hypertext func is only used when the 
  313.   "point" is underline. See 'getColors' for info about the current file.
  314. Ñ insertFile - prompts for a file name and inserts the
  315.   corresponding file into the current window. Not
  316.   undoable.
  317. Ñ insertMenu <name> - insert the previously created user menu 'name' into 
  318.   the menuBar. 
  319. Ñ insertPathName - present the user w/ a SFGetFIle dialog 
  320.   and paste the complete path-name of the chosen file
  321.   into the current window
  322. Ñ insertText [-w <win name>] <text>* - Insert 'text' at the current 
  323.   insertion point.
  324. Ñ insertToTop - make the line that the insertion point 
  325.   is on the first line shown, and display the current 
  326.   line number along w/ the total number of lines in file
  327. Ñ isearch - incremental search: searches w/o a dialog,
  328.   searches as you type the search pattern. Does not do
  329.   regular expression searches. 'matchWords' 
  330.   automatically set to false.
  331. Ñ iterationCount - allows actions to be repeated many times. "control-u 44 
  332.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  333.   function or macro (including the keyboard macro) many times.  Defaults to 
  334.   4.
  335. Ñ jumpToRegister - prompts for a single char, and then jumpts to 
  336.   temporary mark of that name created by 'pointToRegister'.
  337. Ñ keyAscii - insert ascii representation (in decimal)
  338.   of the keydown event, plus a modifier string, if 
  339.   necessary.
  340. Ñ keyCode - insert the key code along w/ a string 
  341.   representing and modifiers into the current window.
  342.   Can be used to create bindings in 'Alphabits'.
  343. Ñ killLine - kill text from insertion point to the end 
  344.   of the line. If the line has no text, delete the line 
  345.   and move succeeding lines up one.
  346. Ñ killWindow - kill current window
  347. Ñ largestPrefix <list> - Returns the longest prefix contained in all 
  348.   strings of 'list'.
  349. Ñ launch -f <name> - launch the named app into the background. Note that 
  350.   for some yet unexplained reason, some applications (MicroSoft Word) 
  351.   won't launch completely in the background. 'launch'ing such 
  352.   applications won't insert the application into any system menu that 
  353.   specifies running applications (although "About the Finder..." will 
  354.   list it. The only way to get to such an app is through Alpha's 
  355.   'switchTo', after which the application will finish launching. The '-f' 
  356.   option gets around this by launching the application in the foreground 
  357.   instead.
  358. Ñ lineStart <pos> - return the position of the start of
  359.   the line 'pos' is on.
  360. Ñ listBindings - list all current bindings.
  361. Ñ listpick [-p <prompt>] [-l] [-L <def list>] <list>
  362.   This command will display a dialog with the list displayed in a List Manager 
  363.   list. If the user presses the Cancel button, an empty string is returned. If 
  364.   the user selects the Open button, or double clicks an item in the list, that 
  365.   item will be returned. If '-l' is specified, than the return is a list of 
  366.   items.
  367. Ñ load - loads hilited text, or entire window if 
  368.   nothing is hilited. 'load'ing means that whatever 
  369.   bindings or macro definitions are present in the 
  370.   loaded text take effect
  371. Ñ lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  372.   current file, or the file named by <name> if the '-w' option is specified.
  373. Ñ markHilite - This is the 'Hilite' from the 'Edit'
  374.   menu. If there is a currently hilited selection, the 
  375.   selection is unhilited, leaving the mark and the 
  376.   insertion point around the old selection. If there 
  377.   is not a selection, the region between the insertion 
  378.   point and the mark is selected.
  379. Ñ markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  380.   the menu item of user menu 'menuName' that has text '<item text>'. 
  381.   Note that unless the menu is not only created, but also already
  382.   inserted, this command has no effect. 
  383. Ñ matchBrace - moves the insertion point to the 
  384.   character that matches the character after the current 
  385.   insertion point
  386. Ñ matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  387.   parenthesis, square brackets, and curly braces.
  388. Ñ maxPos [-w <win>] - returns the number of characters in the front
  389.   window.
  390. Ñ menu [-s] [-n <name>] [-i <num] [-m] [-M <mode>] [-p <procname>] <list of menu items> - 
  391.   Defines a new menu named 'name' (if provided w/ '-n' option). The menu is not 
  392.   yet inserted into the menubar. The menu commands may be nested for 
  393.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  394.   function names to make them look better in the menus. 
  395.   '-s'            Use system menu definition proc (faster).
  396.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  397.                 is the only resource that is really necessary.
  398.   '-n <name>'    Name the menu. Not necessary for submenus.
  399.   '-m'            No menu form. If not supplied, each menu item is split into 
  400.                   words at each capitalized letter.
  401.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu's name
  402.                   and the item's contents when the item is chosen.
  403.   '-M <mode>'    Specifies that any bindings created by the menu are 
  404.                   specific to a given mode. This is important because mode-specific
  405.                   bindings over-ride global bindings.
  406. Ñ message <string> - prints 'string' on the status line.
  407. Ñ mkdir <name> - creates a directory (folder) named 
  408.   'name' in the current directory.
  409. Ñ mousePos - Returns list <row,col> of mouse position, if the mouse is 
  410.   currently over the active window. Otherwise, return error (catch w/ 
  411.   'catch').
  412. Ñ moveInsertionHere [-last] - move the insertion point to the 
  413.   first (or last) line displayed
  414. Ñ moveFile <fromName> <toName>
  415.   This command will move the file fromName to toName, overwriting any 
  416.   existing file. The move can not be made across volume (disk drives) 
  417.   boundaries. 
  418. Ñ moveWin [win name] <left> <top> - moves current or specified window. 
  419.   The window name can be "StatusWin".
  420. Ñ mtime <time> [long|short|abbrev]
  421.   Returns a date and time string using the Macintosh International Utilities. The 
  422.   long/short/abbrev specification corresponds to the date. These are the following 
  423.   formats:
  424.     short        3/16/92 9:20:46 PM
  425.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  426.     long        Monday, March 16, 1992 9:20:43 PM
  427.   The returned value actually is in the form of a list. To get text as 
  428.   above, run the result through 'join', as in "join [mtime [now] short]".
  429. Ñ new [-g <l> <t> <w> <h>] [-n <name>] - opens an untitled window. Can optionally 
  430.   provide left and top coordinates, plus width and height. All or none.
  431. Ñ nextLine - move insertion point to next line
  432. Ñ nextLineSelect - extend selection to the next line
  433. Ñ nextLineStart <pos> - return the position of the start 
  434.   of the next line after position 'pos'.
  435. Ñ nextSentence - go to next sentence ("fill.tcl").
  436. Ñ nextWindow - select next window
  437. Ñ now
  438.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  439.   have elapsed since Midnight Jan 1, 1904.
  440. Ñ oneSpace - converts whitespace surrounding insertion
  441.   into a single space.
  442. Ñ openLine - insert a new line following the current 
  443.   one and move the insertion point to it
  444. Ñ otherPane - If window is split, select the other pane.
  445. Ñ pageBack - display prev screenful, move the
  446.   insertion point if 'moveInsertion' enabled
  447. Ñ pageForward - display next screenful, move the
  448.   insertion point if 'moveInsertion' enabled
  449. Ñ pageSetup - display the printing PageSetup dialog.
  450. Ñ paste - insert the last chunk of text created by 'cut' 
  451.   or 'copy'
  452. Ñ pointToRegister - prompts for a single character, and then assigns a 
  453.   temporary mark of that name to the current insertion point. Point can 
  454.   be jumped to via 'jumpToRegister'.
  455. Ñ posToRowCol <pos> - converts from absolute position to row, col.
  456. Ñ prefixChar - used to further modify the next keystroke 
  457.   combination, in the same manner as using the shift key 
  458.   in the next keystroke
  459. Ñ previousLine - move insertion point to the previous 
  460.   line
  461. Ñ prevLineSelect - extend selection to the previous line
  462. Ñ prevSentence - go to previous sentence ("fill.tcl").
  463. Ñ prevWindow - select previous window
  464. Ñ print - print front window
  465. Ñ processes - returns info of active processes. A list of lists, each 
  466.   sublist contain a file-name, an application signature, the application 
  467.   memory size, and the number of ticks the application has been active.
  468. Ñ prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  469.   the user with a prompt string and a default value. The prompt dialog can 
  470.   optionally include a popup menu specified by 'name' and the succeeding 
  471.   strings. Selection of the popup menu items inserts the item text into the 
  472.   editable dialog item. 'Prompt' returns the value of the editable item. 
  473.   If the 'Cancel' button is selected, the tcl returns an error and your 
  474.   script will be stopped unless you execute the command from 'catch'.
  475. Ñ putfile <prompt> <original>
  476.   This command will display an SFPutFile() and return the full path name of the 
  477.   selected file, or an empty string if CANCEL button was selected. Original is the 
  478.   default name displayed for the user.
  479. Ñ putScrap [<string>]+ - Concatenate strings together into the system 
  480.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  481.   [getScrap] " another word"'.
  482. Ñ pwd
  483.   This command will return the current working directory, ending in a colon.
  484. Ñ quit - quits ALPHA
  485. Ñ rectMarkHilite - creates a rectangular selection 
  486.   between the mark and the insertion point.
  487. Ñ redo - redo the next action that has been undone but 
  488.   not redone
  489. Ñ regModeKeywords [options] <mode> <keyword list> - Set keywords and comments that 
  490.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  491.   keyword specified in the list is colored non-black (blue, by default). 
  492.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  493.     -a                                Keywords will be *added* to existing mode
  494.                                     keywords. The new keywords can be a different
  495.                                     color than older keywords. This flag can also be
  496.                                     used to modify other attributes, but it cannot be
  497.                                     used to modify colors of existing keywords.
  498.     -m <c>                            Specify a magic character. Every word beginning with the 
  499.                                     magic character is a keyword.
  500.     -e <commentstr>                    Specify a string that begins comments that last to 
  501.                                     the end of the line. 
  502.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  503.                                     comment.
  504.     -c <color>                        Comment color.
  505.     -k <color>                        Keyword color.
  506.     -s <color>                        String color. Alpha can color single-line
  507.                                     strings only, using the simple heuristic
  508.                                     of assuming the first two double quotes
  509.                                     constitute a string. 
  510.     -i <char>                        Specify a character to display differently.
  511.                                     Commonly used for curly braces, etc.
  512.     -I <color>                        Color of above characters.
  513.     Keywords must be less than 20 characters long.
  514. Ñ removeArrDef <var> <field> - Remove the pernament definition of 
  515.  'var(field)'. See 'addDef' and 'addArrDef'.
  516. Ñ removeDef <var> - Remove the permanent definition of 'var'.
  517. Ñ removeFile <fileName>
  518.   This command will delete the file or folder 'fileName'.
  519. Ñ removeMark [-all]|[[-n <mark name] [-w <specname>]]- allows marks to be 
  520.   removed. If no options are specified, it's interactive.
  521. Ñ removeMenu <name> - remove menu 'name' from menubar, except those 
  522.   specified by previous 'makeMenuPermanent' calls.
  523. Ñ removeTMark <name> - remove temporary mark.
  524. Ñ replace - replace the current selection
  525. Ñ replaceAll - replace all further occurrences in the current file.
  526. Ñ replace&FindAgain - replace the current selection and find next 
  527.   occurrence.
  528. Ñ replaceString [<str>] - specifies replacement string. Returns current 
  529.   replacement string if no arg.
  530. Ñ replaceText <pos1> <pos2> [text]+ - replaces the text
  531.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  532.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  533.   text. 
  534. Ñ restoreVars - restore variables to saved state, 
  535.   see 'saveVars'
  536. Ñ revert - revert the file to its last saved version
  537. Ñ rowColToPos [-w <win>] <row> <col> - converts to abosolute position.
  538.   Accepts optional -w parameter that allows window to be specified.
  539. Ñ rsearch - reverse incremental search, see 'isearch'.
  540. Ñ save - save current window
  541. Ñ saveAs [def name] - save current window with new name. Optionally takes 
  542.   a default filename. Returns complete path of saved file, if ok hit, 
  543.   otherwise TCL_ERROR returned.
  544. Ñ saveVars - save variable state, see 'restoreVars'
  545. Ñ scrollDownLine - same action as that which occurs when 
  546.   the down arrow in the vertical scrollbar is selected
  547. Ñ scrollLeftCol - same action as that which occurs when
  548.   the left arrow in the horizontal scrollbar is selected
  549. Ñ scrollRightCol - same action as that which occurs when
  550.   the right arrow in the horizontal scrollbar is 
  551.   selected
  552. Ñ scrollUpLine - same action as that which occurs when 
  553.   the up arrow in the vertical scrollbar is selected
  554. Ñ search  [options╔] <pattern> <pos> - 
  555.   -f <num>        - go forward?
  556.   -r <num>        - regular expression?
  557.   -s            - save previous search string and search flags.
  558.   -i <num>        - ignore case?
  559.   -m <num>        - match words?
  560.   -n            - failed search still returns TCL_OK, but null string.
  561.   -l <limit>    - limit on how search goes.
  562.   --             - next arg is the pattern.
  563.  
  564.   Searches for 'pattern' from position 'pos'.  If the search succeeds, a 
  565.   list of two positions will be returned.  The first is the starting position 
  566.   of the match, the second is one past the last character. If no '-n', 
  567.   TCL_ERROR returned.
  568. Ñ searchString [<str>] - allows search string to be specified. Returns 
  569.   current searchstring if no arg.
  570. Ñ select <pos1> <pos2> - selects the text between 'pos1' 
  571.   and 'pos2'.
  572. Ñ selEnd [-w <win] - returns the end of the hilited selection, or 
  573.   the current insertion point if no text is selected.
  574. Ñ sendOpenEvent [filler] <app name> <file name> - Send an open doc event to 
  575.   another currently running application. If 'filler' is noReply, then a 
  576.   reply is not requested. Otherwise, we wait for a reply and 'filler' is 
  577.   ignored. 
  578. Ñ sendToBack <winName> - Sent named window to back.
  579. Ñ setFileInfo <file> <field> [arg] - Allows some information to be set 
  580.   for files. Settable fields are 'modified', 'created', 'creator', and 
  581.   'type' all take an argument. 'resourcelen' can be set, but doesn't take 
  582.   an argument and just removes the resource fork.
  583. Ñ setFontsTabs - bring up font and tab dialog
  584. Ñ setMark - set the current mark to the insertion point
  585. Ñ setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  586.   present, the mark is created without prompting user. 'disp' is the 
  587.   character position of the start of the first line to be displayed, 
  588.   while 'pos' and 'end' bracket the text to be selected.
  589. Ñ setWinInfo [-w <win>] <field> <arg> - Sets a piece of data about either 
  590.   the current or a specified window. Settable fields 'platform', 'state', 
  591.   'read-only', 'tabsize' and 'dirty'.
  592. Ñ shell - open the Tcl shell.
  593. Ñ shiftLeftRegion - shifts the current region left a tab
  594. Ñ shiftRightRegion - shift the current region right a 
  595.   tab
  596. Ñ sizeWin [win name] <width> <height> - sets size of current or specified window.
  597.   The window name can be "StatusWin", although only the width can be 
  598.   changed.
  599. Ñ sortMarks - sorts all marks of open windows, w/o 
  600.   setting the dirty flag. If the files are saved, the 
  601.   marks will be saved in alphabetical order.
  602. Ñ spacesToTabs - convert spaces in selection to tabs
  603. Ñ specToPathName [hex data] - given an FSSpec in hex form (as that 
  604.   returned by aebuild, for instance, see the definition of thinkFileName 
  605.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  606. Ñ splitWindow [percent] - toggle having window split into two panes. 
  607.   Optional arg specifies percent of window to allocate to the first pane. 
  608. Ñ startEscape - used to further modify the next 
  609.   keystroke combination, in the same manner as using the 
  610.   shift key in the next keystroke
  611. Ñ startKeyboardMacro - start recording keyboard macro
  612. Ñ statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  613.   is present, call this routine at each key-press with the current 
  614.   contents of the status line and the key, insert into statusline 
  615.   whatever is returned by the func. Command-v pastes the current (<80 
  616.   char) clipboard contents on the status line.
  617. Ñ substituteVars <string> - Takes a single string and
  618.   substitutes for all variables inside it, regardless of
  619.   depth. Unfortunately, you currently need to make 'global var' 
  620.   declarations in the proc you call this for each 'var' that might need 
  621.   to be substituted in the string (see proc.tcl for examples).
  622. Ñ switchTo <appName> - Switches to application 'appName'.
  623. Ñ tab - insert a tab
  624. Ñ tabsToSpaces - convert tabs in selection to spaces.
  625. Ñ tclFileCompletion - completes the previous word as a
  626.   file is in a shell window
  627. Ñ tclResult - displays a dialog showing the result of 
  628.   the last TCL evaluation.
  629. Ñ thinkReference <-t|-l> <think reference page> - Interact with Think 
  630.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  631.   switches to Think Reference and goes to the specified page.
  632. Ñ ticks
  633.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  634.   number of ticks since the Macintosh was started. The command:
  635.         puts stdout [expr "[ticks] / 60"]
  636.   will print the number of seconds since the Macintosh was booted.
  637. Ñ toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  638.   Will not succeed if scrollbar scrolled.
  639. Ñ traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  640.                                     'winName'. 
  641.   traceFunc off                        Turn function tracing off.
  642.   traceFunc status                    Display current tracing status.
  643. Ñ unascii  (see bindings)
  644. Ñ unbind  (see bindings)
  645. Ñ undo - undo the last action that has not been undone
  646. Ñ upcaseRegion - convert all lowercase letters to 
  647.   uppercase in the current region
  648. Ñ upcaseWord - convert all lowercase letters to 
  649.   uppercase in the current word
  650. Ñ version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  651. Ñ watchCursor - turns the cursor into a a watch cursor.
  652. Ñ wc <file>... - counts chars, words, lines of input files.
  653. Ñ winNames [-f] - return a TCL list of all open windows. If '-f' option 
  654.   specified, complete pathnames are returned.
  655. Ñ wrap - see the section on "Fill" routines.
  656. Ñ wrapText
  657. Ñ xtclcmd [-f filename] <cmdname> [argument_list]*
  658.   This command will load the external command cmdname and pass it the argument 
  659.   list [ cmdname argument_list... ]. External command are code resources of type 
  660.   XTCL. They may be located in the resource fork of the tickle application, or they 
  661.   may be located in a file named XTCL File in the same directory as the tickle 
  662.   application. If the optional -f filename is included, the external command will first 
  663.   be loaded from filename before the other two files.
  664.   See the appendix for a detailed description of the external tcl command interface. 
  665.   See the accompanying sources for an example of writing an XTCL.
  666. Ñ yank - insert the last piece of deleted text of less
  667.   than 1k. Consecutive deletes are concatenated.
  668.   together.
  669. Ñ zapInvisibles - removes chars < ascii 32, except for
  670.   LF's and CR's.
  671. Ñ zoom - zooms the current window
  672.